package com.guguskins.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 问题反馈表
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gu_feedback")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class GuFeedback extends Model<GuFeedback> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "feedback_id", type = IdType.AUTO)
    private Long feedbackId;

    /**
     * 用户id
     */
    private Long feedbackUserId;

    /**
     * steamId
     */
    private String feedbackSteamId;

    /**
     * 问题类型
     */
    private String feedbackType;

    /**
     * 联系方式
     */
    private String feedbackContact;

    /**
     * 描述
     */
    private String feedbackDesc;
    @TableField(exist = false)
    private String iteamName;
    /**
     * 0 已处理 1 未处理
     */
    private Integer feedbackStatus;
  @TableField(exist = false)
  private GuFeedbackType backType;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime feedbackCreateTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime feedbackUpdateTime;

    @Override
    protected Serializable pkVal() {
        return this.feedbackId;
    }

}
